import * as api from "./api";

export default {
  // 获取订单列表
  getList: (params, page, isDisLoading) => {
    return api.get(`/api/orders/list/${page.index}`, params, {
      isDisLoading
    });
  },
  // 获取订单详情
  getDetails: params => {
    return api.get(`/api/orders/${params.orderNo}`);
  },
  // 获取进行中的订单-或未支付订单
  getOrderIng: params => {
    return api.get(`/api/orders/ing`);
  },
  // 计算支付金额
  calculatePrice: params => {
    return api.get(`/api/orders/calculate-price`, params);
  },
};
